package customermanagesystem.demo.dao;

import customermanagesystem.demo.bean.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper //mybatis自动创建对应实现类给IOC容器管理
public interface CustomerMapper {
    List<Customer> queryCustomer(Customer customer, int start,int length);
    int queryTotalCount(Customer customer);
    void delCustomer(int id);
    void modifyCustomer(Customer customer);
    void addCustomer(Customer customer);
}
